/**
 * Copyright (c) 2011 eelpo.com
 * All rights reserved.
 */
package com.eelpo.cmmp.core.wicket.panel.grid.column;

import org.apache.wicket.Component;
import org.apache.wicket.MarkupContainer;
import org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
import org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator;

/**
 * 列接口
 * 
 * @author <a href="mailto:Brian@eelpo.com">汪洪州</a>
 * @since 1.0
 */
public interface IColumnHeader<T> extends ICellPopulator<T> {

	public boolean isAllowSort();

	public ColumnLocation getLocation();

	public Component newHeader(MarkupContainer parent, String id);

	public Component newSortHeader(MarkupContainer parent, String id, ISortStateLocator dataProvider);
}